package com.atguigu.spring.iocxml;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {

    private final Logger logger = LoggerFactory.getLogger(User.class);

    private String name;
    private Integer age;

    public void run() {
        logger.info("User的run方法执行了");
    }

}

